package com.ihmp.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ihmp.business.CommonUtils;

@Controller
public class UserGuideAccommodation {
	@RequestMapping(value="/",method=RequestMethod.GET)
	public String loadPage(HttpServletRequest request){	
		request.setAttribute("pageTitle", "Hướng dẫn sử dụng - iHMP DanaTours");
		String view ="";
		// check xem đã đăng nhập chưa, chưa thì đưa về trang login
		if(!CommonUtils.isLogin(request)) view = "credential";
		else view = "accommodation/user-guide";		
		return view;		
	}
}
